package com.yeyks.consumer.dal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 用户登录日志表
 * </p>
 *
 * @author yun
 * @since 2019-11-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="UserLoginHistory对象", description="用户登录日志表")
public class UserLoginHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户ID")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "成功or失败")
    @TableField("result")
    private String result;

    @ApiModelProperty(value = "登录终端 1:app 2:gzh 3:xcx")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "登录IP")
    @TableField("ip")
    private String ip;

    @ApiModelProperty(value = "登录mac地址")
    @TableField("mac")
    private String mac;

    @ApiModelProperty(value = "登录设备号")
    @TableField("device_id")
    private String deviceId;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;


    public static final String ID = "id";

    public static final String USER_ID = "user_id";

    public static final String PHONE = "phone";

    public static final String RESULT = "result";

    public static final String TYPE = "type";

    public static final String IP = "ip";

    public static final String MAC = "mac";

    public static final String DEVICE_ID = "device_id";

    public static final String CREATE_TIME = "create_time";

}
